﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MissionEditor.ConditionUI
{
    public partial class BaseDestroyed : UserControl, IConditionUI
    {
        Condition condition;
        public BaseDestroyed(Condition condition)
        {
            this.condition = condition;
            InitializeComponent();
            unknownBD1.Text = condition.raw[8].ToString();
            sideComboBox.SelectedIndex = condition.raw[24];
        }
        public void Apply()
        {
            condition.raw[8] = Convert.ToByte(unknownBD1.Text);
            condition.raw[24] = (byte)sideComboBox.SelectedIndex;
        }
    }
}
